new Vue({
    el: '#app',
    mixins: [Save],//组件配置文件，路径/utils/components.js
    data() {
        return {
            dataForm: {},
            childDataForm: [{}],
            detection_results: [],
            detection_attachment:[],
            traceability_batch:[],
            city: [],//地址
        }
    },
    mounted() {
        /**
         * 组件配置文件中自动执行方法
         * 1.this.init(); //初始化文件
         * 2.this.getData(); //仅修改时执行，根据BOM配置属性查询
         */
        this.getList();
    },
    methods: {
        // andleRight(row) {//配置权限
        //     try {
        //         const { Detection_SerialNumber } = $('#table').data('options');
        //         window.location.href = "rights.html?action=Modify&nodeKey=" + row[Detection_SerialNumber];
        //     } catch (error) {
        //         console.error(error);
        //         this.$message({s
        //             message: '系统错误，请联系开发者!',
        //             type: 'error'
        //         })
        //     }
        // },
       
        getList(){
           httpRequest({
                url: '/generalBusiness/generalQueryByTableName',
                data: {
                    Data: 'traceability_batch',
                    Condition: `Row_Status='0'`
                },
                type:'GET'
            }).then(data => {
               this.traceability_batch = data;
            }).catch(xhr => {
                this.$message.error("系统错误，请联系开发者!")
            })
        }
    
        
    }
})
// handleRight(row) {//配置权限
//             try {
//                 const { primaryKey } = $('#table').data('options');
//                 window.location.href = "rights.html?action=Modify&nodeKey=" + row[primaryKey];
//             } catch (error) {
//                 console.error(error);
//                 this.$message({
//                     message: '系统错误，请联系开发者!',
//                     type: 'error'
//                 })
//             }
//         },